﻿<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Activity_Activity_Grid_Edit.aspx.vb" Inherits="PubProject.Activity_Activity_Grid_Edit" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>交互明细</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link rel="stylesheet" type="text/css" href="/_nav/menu.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css">
		<link rel="stylesheet" type="text/css" href="/_grid/map_grid.css">
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css">
		<link rel="stylesheet" type="text/css" href="/_nav/tabs.css">
		<link rel="stylesheet" type="text/css" href="/_nav/nav.css">
		<link rel="stylesheet" type="text/css" href="/_common/styles/select.css">
		<script language="javascript" src="/_controls/setting.js"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_controls/datetime/time.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_controls/lookup/map_lookup.js"></script>
		<script language="javascript" src="/_controls/lookup/map_lookupDialogs.js"></script>
		<script language="javascript" src="/_nav/menu.js"></script>
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/Slxt/js/Public.js"></script>
		<script language="javascript" src="/PubProject/Activity/Activity.js"></script>
		
		<script language="javascript">
		//在线帮助文件
		var _MyHelpfile = "";

		function window.onload()
		{
		    appForm._bSaving=true;
		}
		function ReSendSingle()
		{   
			if(appForm.ActStatus.value =="执行中")
			{
				alert("执行中的交互明细记录不能重新发送，请重新选择！");
				return;
			}
			var sOid = appForm.oid.value;
			var sActGUID = appForm.ActGUID.value;
			
			//检查参数设置是否完整
			var sFile = "/PubProject/Activity/Activity_Pub_XMLHTTP.aspx?AppName="+escape(appForm.AppName.value)+"&ActType=" + escape(appForm.ActType.value);
			var sRtn=GetDataFromXMLHTTP(sFile,"CheckParamSet","","","");
			if (sRtn.substr(0,2) == "NO")
			{
			    alert(sRtn.substr(3));
			    return;
			}
			else if (sRtn.substr(0,2) != "OK")
			{
			    alert("检查信息发送参数失败，请与管理员联系！");
			    return;
			}
			
			//调用重新发送公用函数重新发送
			var sRtn=ReSendPublic(sOid,sActGUID);
			if(sRtn=="OK")
			{
				alert("发送成功！");
                window.close();
				window.opener.location.reload();
				
			}
			else
			{
				alert("操作发生异常，请重新发送！");
			}
		}
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" height="100%" border="0">
			<tr height="48">
				<td>
					<mnu:AppFormMenu id="AppFormMenu" runat="server"></mnu:AppFormMenu>
				</td>
			</tr>
			<tr>
				<td>
					<div class="area">
						<cnt:AppForm id="appForm" runat="server" DefaultValueXml="" onBeforeSave="" onaftersave=""
							processtype="xmlhttp"></cnt:AppForm>
					</div>
				</td>
			</tr>
		</TABLE>
	</body>
</HTML>
